import '@tarojs/async-await'
import Taro, { Component } from '@tarojs/taro'
import { Provider } from '@tarojs/redux'
import configStore from './store'
import './app.scss'
import XhlList from "./pages/xhlList/xhlList";

// 如果需要在 h5 环境中开启 React Devtools
// 取消以下注释：
// if (process.env.NODE_ENV !== 'production' && process.env.TARO_ENV === 'h5')  {
//   require('nerv-devtools')
// }

const store = configStore()

class App extends Component {

  config = {
    pages: [
      'pages/xhlList/xhlList',
      'pages/xhl1/xhl1',
      'pages/xhl2/xhl2',
      'pages/xhl3/xhl3',
      'pages/xhl4/xhl4',
      'pages/xhl5/xhl5',
      'pages/xhl6/xhl6',
      'pages/xhl7/xhl7',
      'pages/xhl8/xhl8',
      'pages/xhl9/xhl9',
      'pages/xhl10/xhl10',
      'pages/xhl11/xhl11',
      'pages/xhl12/xhl12'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    }
  }

  componentDidMount () {}

  componentDidShow () {}

  componentDidHide () {}

  componentDidCatchError () {}

  // 在 App 类中的 render() 函数没有实际作用
  // 请勿修改此函数
  render () {
    return (
      <Provider store={store}>
        <XhlList />
      </Provider>
    )
  }
}

Taro.render(<App />, document.getElementById('app'))
